<!DOCTYPE html>
<html>
<head><#include "/admin/common/common.ftl" parse=true encoding="utf-8">
</head>
<body class="hold-transition skin-blue sidebar-mini">
	<div class="wrapper">

		<#include "/admin/common/header.ftl" parse=true encoding="utf-8">

		<!-- Content Wrapper. Contains page content -->
		<div class="content-wrapper">
			<!-- Content Header (Page header) -->
			<section class="content-header">
				<h1>模板管理</h1>
				<ol class="breadcrumb">
					<li class="active">邮件模板详情</li>
				</ol>
			</section>
			<!-- Main content -->
			<section class="content">
				<!-- Info boxes -->
				<div class="row">
					<div class="box">
						<div class="box-header">
							<div class="table-btn">
								<a href="${base}/admin/template/mail/addnew.do">
									<span class="label label-primary">新增</span>
								</a>
								<a href="${base}/admin/template/mail/list.do">
									<span class="label label-primary">列表</span>
								</a>
							</div>
						</div>
						<!-- /.box-header -->
						<div class="box-body">
							<h3 id="affix-events">邮件模板信息</h3>
							<form class="form-horizontal" role="form" id="myForm">
								<input type="hidden" id="id" name="id" value="${entity.id!}">
								<table class="table table-bordered table-striped">
									<thead>
									</thead>
									<tbody>
										<tr>
											<td class="fw td1">模板类型</td>
											<td class="td2">${entity.type!}</td>
											<td class="fw">模板名称</td>
											<td class="td2">${entity.name!}</td>
										</tr>
										<tr>
											<td class="fw td1">模板描述</td>
											<td class="td2">${entity.describe!}</td>
											<td class="fw td1">默认模版</td>
											<td class="td2">${entity.isDefault!}</td>
										</tr>
										<tr>
											<td class="fw td1">邮件主题</td>
											<td class="td2" >${entity.subject!}</td>
											<td class="fw">创建时间</td>
											<td class="td2">${entity.createTime!}</td>
										</tr>
										<tr>
											<td class="fw td1">邮件内容</td>
											<td class="td2" colspan="3">${entity.content!}</td>
										</tr>
									</tbody>
								</table>
								<div class="form-group">
									<div class="col-sm-offset-3 col-sm-3">
										<button type="button" class="btn btn-primary" onclick="returnList()">返回</button>
									</div>
								</div>
							</form>
						</div>
						<!-- /.box-body -->
					</div>
					<!-- /.box -->
				</div>
				<!-- /.row -->
			</section>
		</div>
		<!-- /.content-wrapper -->
	</div>
	<!-- ./wrapper -->
	<#include "/admin/common/footer.ftl" parse=true encoding="utf-8">

	<script type="text/javascript">
		function returnList() {
			window.location = '${base}/admin/template/mail/list.do';
		}
	</script>
</body>
</html>

